package com.huage_06.lesson_01;

import java.util.Scanner;

/*
    测试类
 */
public class StudentScoreDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生分数:");
        int score = sc.nextInt();

        try {
            StudentScore s = new StudentScore(score);
            System.out.println("学生分数为:"+s.getSore());
        } catch (ScoreException e) {
            e.printStackTrace();
        }
    }
}
